package com.zm.campus.service;

import com.zm.campus.pojo.RespBean;
import com.zm.campus.pojo.Trade;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zm.campus.query.TradeQuery;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zm

 */
public interface ITradeService extends IService<Trade> {

    //获取当前用户的进行中的订单
    RespBean getDealingData(TradeQuery tradeQuery);

    //完成、取消订单
    RespBean doDeal(String userId, String tradeNo, Boolean doDeal) throws IOException;

    //是否重新代劳
    RespBean reDeal(String rdId, boolean isDeal);
}
